﻿using System;

namespace Microsoft.CodeMarkers.Internal
{
    abstract class CodeMarkerBaseHost : IDisposable
    {
        protected Uri BaseUri { get; private set; }
        protected Uri ServiceUri {get; private set; }

        protected CodeMarkerBaseHost(int processId)
        {
            this.BaseUri = new Uri(String.Format("net.pipe://localhost/{0}", processId));
            this.ServiceUri = new Uri(this.BaseUri, String.Format("{0}/CodeMarkers", processId));
        }

        public abstract void Dispose();
    }
}
